package com.ace.slide.service.impl;

import org.hibernate.Session;
import org.hibernate.SessionFactory;

import com.ace.slide.service.HibernateService;

public class HibernateServiceImpl implements HibernateService
{
    private SessionFactory factory;

    public void setFactory(SessionFactory factory)
    {
        this.factory = factory;
    }

    public Session createSession()
    {
        return factory.openSession();
    }
}
